package inst.ejb.utilities;

import javax.naming.Context;
import javax.naming.InitialContext;


public class LookupRemote{

	protected Object lookupDao(Class implClass) {
		try {
			Context ctx = new InitialContext();
			Log.debug(implClass.getSimpleName());
			return ctx.lookup(implClass.getSimpleName() + "/remote");
		} catch (Exception e) {
			// TODO: handle exception
			Log.error(e.getMessage());
			return null;
		}
	}
}